﻿<Window x:Class="ABCat.UI.WPF.UI.LoginWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
        xmlns:mui="http://firstfloorsoftware.com/ModernUI"
        xmlns:shared="clr-namespace:ABCat.Shared;assembly=ABCat.Shared"
        Title="Вход"
        Width="300" Height="145">
	<i:Interaction.Behaviors>
		<shared:ModernWindowBehavior />
	</i:Interaction.Behaviors>



	<Grid Margin="10">
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto" />
			<RowDefinition Height="4" />
			<RowDefinition Height="Auto" />
			<RowDefinition Height="4" />
			<RowDefinition Height="Auto" />
			<RowDefinition Height="4" />
			<RowDefinition Height="Auto" />
		</Grid.RowDefinitions>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="Auto" />
			<ColumnDefinition Width="4" />
			<ColumnDefinition Width="1*" />
		</Grid.ColumnDefinitions>
		<TextBlock Text="Логин" />
		<TextBox Grid.Column="2" Text="{Binding Login, Mode=TwoWay}" />
		<TextBlock Grid.Row="2" Text="Пароль" />
		<PasswordBox x:Name="PasswordBox"
		             Grid.Row="2"
		             Grid.Column="2"
		             PasswordChanged="PasswordBox_PasswordChanged" />
		<StackPanel Grid.Row="6"
		            Grid.ColumnSpan="3"
		            Margin="5"
		            HorizontalAlignment="Center"
		            VerticalAlignment="Bottom"
		            Orientation="Horizontal">
			<Button x:Name="OkBtn"
			        Width="60"
			        Margin="5"
			        Click="OkBtn_Click">
				Ok
			</Button>
			<Button x:Name="CancelBtn"
			        Width="60"
			        Margin="5"
			        Click="CancelBtn_OnClick">
				Cancel
			</Button>
		</StackPanel>
	</Grid>
</Window>
